const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    open: true,
    host: "localhost",
    port: 8080,
    hot: true,
    https: false,
    proxy: {
      "/api": {
        target: "http://81.68.218.233:82", // 后端服务域名
        secure: false, // 是否支持 https，默认 false
        ws: true, // 是否支持 websocket
        changeOrigin: true, // 是否支持跨域
        pathRewrite: {
          '/api': ''
        }
      }
    },
  },
})
